<!doctype html>
<html xmlns="http://www.w3.org/1999/xhtml" id="html">
    <head>
        <title></title>
        <meta http-equiv="content-type" content="text/html; charset=utf-8" />
        <base href="<?= base_url(1); ?>" />
        <link type="text/css" href="css/main.css?v=<?= $config['version'] ?>" rel="stylesheet" />
    </head>
    <body>
        <?php include(VIEWPATH . 'common/main_header.php'); ?>
        <div class="datalist"><table id="flexigrid" style="display:none"></table></div>
        <script type="text/javascript">
            $(function() {
                $("#flexigrid").flexigrid($.extend(SG.flexOptions, {
                    url: '<?= site_url('dbtrade/auctionitem/flexigrid') ?>',
                    colModel: [
						{display: '<?= translate('DBTRADE_ROLEID') ?>', name: 'roleid', width: 100},
						{display: '<?= translate('DBTRADE_GMID') ?>', name: 'gmid', width: 100, iskey: true},						
                        {display: '<?= translate('DBTRADE_NAME') ?>', name: 'name', width: 130},
                        {display: '<?= translate('DBTRADE_PROFFESSIONID') ?>', name: 'profession', width: 100,hide:true},
                        {display: '<?= translate('DBTRADE_ITEMTYPEID') ?>', name: 'type', width: 250},
                        {display: '<?= translate('DBTRADE_COLOR') ?>', name: 'color', width: 50},
                        {display: '<?= translate('DBTRADE_USEDLEVEL') ?>', name: 'usedlevel', width: 100},
                        {display: '<?= translate('DBTRADE_SUBKIND') ?>', name: 'subkind', width: 100},
                        {display: '<?= translate('DBTRADE_COUNT') ?>', name: 'count', width: 80},
                        {display: '<?= translate('DBTRADE_COST') ?>', name: 'cost', width: 100},
                        {display: '<?= translate('DBTRADE_ADDTIME') ?>', name: 'addtime', width: 150},
                        {display: '<?= translate('DBTRADE_DUETIME') ?>', name: 'duetime', width: 150},                        
                        {display: '<?= translate('DBTRADE_REMAIN') ?>', name: 'remain', width: 150},
                        {display: '<?= translate('DBTRADE_INDATE') ?>', name: 'indate', width: 150},
                        {display: '<?= translate('DBTRADE_SEAL') ?>', name: 'seal', width: 50},
                    ],
                    buttons: [
                        //{name: 'export', displayname: "<?= translate('EXPORT') ?>", bclass: 'export', onpress: multi},
                      //  {name: 'delete', displayname: "<?= translate('DEL') ?>", title: "<?= translate('DEL') ?>", bclass: 'delete'},
                    ],
                    <!-- searchitems: [{display: '<?= translate('ROLE_NAME') ?>', name: 'B.name'}], -->
                }));
                SG.admin = $.extend(SG.admin, {
                    //del_url: '<?= site_url("message/bless/del/") ?>',
                });
            });
        </script>
    </body>
</html>